<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="cn.itcast.domein.User" %>
<%@ page import="java.util.Date" %><%--
  Created by IntelliJ IDEA.
  User: TU
  Date: 2020/3/1
  Time: 13:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    List list = new ArrayList();
    list.add(new User("起点",0,"2019-10-10"));
    list.add(new User("琪琪",18,"2001-5-8"));
    list.add(new User("涂图图",18,"2001-3-31"));
    list.add(new User("暂时的终点",0,"2020-2-2"));
    request.setAttribute("list",list);
%>

<table width="500" border="1" align="center">

    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>生日</th>
    </tr>
    <%--  数据行  --%>
    <c:forEach items="${list}" var="user" varStatus="s">
        <tr>
            <td>${s.count}</td>
            <td>${user.name}</td>
            <td>${user.age}</td>
            <td>${user.birthday}</td>
        </tr>
    </c:forEach>


</table>


</body>
</html>
